package com.dhcc.crftool.enums;


/**
 * 请求资源状态码枚举
 * @author felix
 */

public enum ResultCodeEnum {
    /**
     * 成功 0
     */
    SUCCESS(0,"请求成功"),
    /**
     * 失败 1
     */
    ERROR(1,"请求失败")
    ;
    private Integer code;
    private String msg;

    ResultCodeEnum(Integer code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
